package cn.chia.pojo;

import java.util.HashSet;
import java.util.Set;

/**
 * TblActivity entity. @author MyEclipse Persistence Tools
 */

public class TblActivity implements java.io.Serializable {

	// Fields

	private Integer activityId;
	private TblActivityType tblActivityType;
	private String activityName;
	private String startTime;
	private String endTime;
	private Float discount;
	private Float fullCount;
	private Float substractCount;
	private Set tblItemses = new HashSet(0);
	private Set tblTouchItemsActivities = new HashSet(0);

	// Constructors

	/** default constructor */
	public TblActivity() {
	}

	/** minimal constructor */
	public TblActivity(TblActivityType tblActivityType, String activityName,
			String startTime, String endTime, Float discount, Float fullCount,
			Float substractCount) {
		this.tblActivityType = tblActivityType;
		this.activityName = activityName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.discount = discount;
		this.fullCount = fullCount;
		this.substractCount = substractCount;
	}

	/** full constructor */
	public TblActivity(TblActivityType tblActivityType, String activityName,
			String startTime, String endTime, Float discount, Float fullCount,
			Float substractCount, Set tblItemses, Set tblTouchItemsActivities) {
		this.tblActivityType = tblActivityType;
		this.activityName = activityName;
		this.startTime = startTime;
		this.endTime = endTime;
		this.discount = discount;
		this.fullCount = fullCount;
		this.substractCount = substractCount;
		this.tblItemses = tblItemses;
		this.tblTouchItemsActivities = tblTouchItemsActivities;
	}

	// Property accessors

	public Integer getActivityId() {
		return this.activityId;
	}

	public void setActivityId(Integer activityId) {
		this.activityId = activityId;
	}

	public TblActivityType getTblActivityType() {
		return this.tblActivityType;
	}

	public void setTblActivityType(TblActivityType tblActivityType) {
		this.tblActivityType = tblActivityType;
	}

	public String getActivityName() {
		return this.activityName;
	}

	public void setActivityName(String activityName) {
		this.activityName = activityName;
	}

	public String getStartTime() {
		return this.startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return this.endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}

	public Float getDiscount() {
		return this.discount;
	}

	public void setDiscount(Float discount) {
		this.discount = discount;
	}

	public Float getFullCount() {
		return this.fullCount;
	}

	public void setFullCount(Float fullCount) {
		this.fullCount = fullCount;
	}

	public Float getSubstractCount() {
		return this.substractCount;
	}

	public void setSubstractCount(Float substractCount) {
		this.substractCount = substractCount;
	}

	public Set getTblItemses() {
		return this.tblItemses;
	}

	public void setTblItemses(Set tblItemses) {
		this.tblItemses = tblItemses;
	}

	public Set getTblTouchItemsActivities() {
		return this.tblTouchItemsActivities;
	}

	public void setTblTouchItemsActivities(Set tblTouchItemsActivities) {
		this.tblTouchItemsActivities = tblTouchItemsActivities;
	}

	@Override
	public String toString() {
		return "TblActivity [activityId=" + activityId + ", activityName="
				+ activityName + ", discount=" + discount + ", endTime="
				+ endTime + ", fullCount=" + fullCount + ", startTime="
				+ startTime + ", substractCount=" + substractCount
				+ ", tblActivityType=" + tblActivityType + ", tblItemses="
				+ tblItemses + ", tblTouchItemsActivities="
				+ tblTouchItemsActivities + "]";
	}

}